package com.ea.common.report.pojo.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ReportPropertiesVo {
    /**
     * 指标名称
     */
    String name;

    /**
     * 指标值
     */
    String value;

    /**
     * 参考值-下限
     */
    String referenceLower;

    /**
     * 参考值-上限
     */
    String referenceUpper;

    /**
     * 0-正常 1-高于参考值 2-低于参考值
     */
    Integer compare;

    /**
     * 显示次序
     */
    Integer index;

    public ReportPropertiesVo(ReportPropertiesVo rrvo) {
        this.name = rrvo.getName();
        this.value = rrvo.getValue();
        this.referenceLower = rrvo.getReferenceLower();
        this.referenceUpper = rrvo.getReferenceUpper();
        this.compare = rrvo.getCompare();
        this.index = rrvo.getIndex();
    }
}
